- How to use R Markdown? Tutorial with example document.
- How to use Git and Github for version control?
September 17, 2018
Please go to this link NOW (if you have not already) and submit you Github username:
Office hours of TAs now set as well.
Instructor: Thomas Brambor
thomas.brambor@columbia.edu
IAB 509E Mon 4.50 - 5.50pm
TA1: Crystal Ni
xn2115@tc.columbia.edu
IAB 270J Thur 10am - 12pm
TA2: Mikaela Zhang
xz2782@columbia.edu
IAB 270J Tue 10am - 12pm
For credit, graded: Required to hand in all exercises and complete the final project/exam.
Pass-Fail: Same process as graded students. I submit a letter grade which the registrar converts to either P or F.
Source: R Studio Webinar "Introducing Notebooks with R Markdown"
Source: R Studio Webinar "Introducing Notebooks with R Markdown"
Source: R Studio Webinar "Introducing Notebooks with R Markdown"
You can use Markdown to embed formatting instructions into your text. For example, you can make a word italicized by surrounding it in asterisks, bold by surrounding it in two asterisks, and monospaced (like code) by surrounding it in backticks:
*italics*, **bold**, `code`
You can turn a word into a link by surrounding it in hard brackets and then placing the link behind it in parentheses, like this:
[Columbia U](www.columbia.edu)
To create titles and headers, use leading hastags. The number of hashtags determines the header's level:
# First level header
## Second level header
### Third level header
To make a bulleted list in Markdown, place each item on a new line after an asterisk and a space, like this:
* item 1
* item 2
* item 3
You can make an ordered list by placing each item on a new line after a number followed by a period followed by a space.
1. item 1
2. item 2
3. item 3
You can also use the Markdown syntax to embed latex math equations into your reports. To embed an equation in its own centered equation block, surround the equation with two pairs of dollar signs like this,
$$1 + 1 = 2$$
To embed an equation inline, surround it with a single pair of dollar signs, like this: $1 + 1 = 2$
All standard Latex symbols work.
knitr is an engine for dynamic report generation with R and is used to convert (or "knit") R Markdown files into the desired output format.
R code can be included as chunk with
```{r} ```
or inline with a single tickmark.
message, warning and error options to prevent R Markdown from displaying these.Three of the most popular chunk options are echo, eval and results.
If echo = FALSE, R Markdown will not display the code in the final document (but it will still run the code and display its results unless told otherwise).
If eval = FALSE, R Markdown will not run the code or include its results, (but it will still display the code unless told otherwise).
If results = 'hide', R Markdown will not display the results of the code (but it will still run the code and display the code itself unless told otherwise).
Switch to the demo file Rmarkdown_demo.Rmd in the exercise folder for this week.
Source: R Studio Webinar "Introducing Notebooks with R Markdown"
Note: see also description in exercise document.
A fork is a copy of another user's repository that you manage (and lives on your account).
Forks let you make changes to a project without affecting the original repository.
You can fetch updates from or submit changes to the original repository with pull requests.